<h2>customer List</h2>

<div class="actionBar">
[<?php echo CHtml::link('New customer',array('create')); ?>]
[<?php echo CHtml::link('Manage customer',array('admin')); ?>]
</div>

<?php $this->widget('CLinkPager',array('pages'=>$pages)); ?>

<?php foreach($models as $n=>$model): ?>
<div class="item">
<?php echo CHtml::encode($model->getAttributeLabel('id')); ?>:
<?php echo CHtml::link($model->id,array('show','id'=>$model->id)); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('cname')); ?>:
<?php echo CHtml::encode($model->cname); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('address')); ?>:
<?php echo CHtml::encode($model->address); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('tele')); ?>:
<?php echo CHtml::encode($model->tele); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('fax')); ?>:
<?php echo CHtml::encode($model->fax); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('pic')); ?>:
<?php echo CHtml::encode($model->pic); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('email')); ?>:
<?php echo CHtml::encode($model->email); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('postal')); ?>:
<?php echo CHtml::encode($model->postal); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('date_added')); ?>:
<?php echo CHtml::encode($model->date_added); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('country_code')); ?>:
<?php echo CHtml::encode($model->country_code); ?>
<br/>

</div>
<?php endforeach; ?>
<br/>
<?php $this->widget('CLinkPager',array('pages'=>$pages)); ?>